﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    public interface IParturitionRepository
    {
        /// <summary>
        /// 分娩列表
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Childbirth>> GetChildbirth();
        /// <summary>
        /// 添加种母分娩
        /// </summary>
        /// <param name="sheeppregnancy"></param>
        /// <returns></returns>
        Task<int> AddChildbirth(List<Childbirth> childbirth);
        /// <summary>
        /// 修改种母分娩信息
        /// </summary>
        /// <param name="childbirth"></param>
        /// <returns></returns>
        Task<int> UpdateChildbirth(Childbirth childbirth);
        /// <summary>
        /// 种母分娩删除
        /// </summary>
        /// <param name="eartag"></param>
        /// <returns></returns>
        Task<int> DeleParturition(string? eartag);
    }
}
